<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
    pageEncoding="ISO-8859-1" import="java.util.*"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">

<%

Toppings[] toppingList;
toppingList=(Toppings[])session.getAttribute("toppingData");
%>
<%@page import="com.burger.counter.beans.Toppings"%>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Build Ur Own Burger</title>
<link rel="stylesheet" href="default.css" type="text/css"></link>
</head>
<body>

<%@ include file="header.jsp" %>
<form name="topping2" id="topping2" method="POST" action="Topping3servlet" target ="leftFrame" >
	<div class ="inputColumn" id = "AddStarter" align = "center" 
			style="text-align: left; border: none; margin: auto;">	
		<table align="center" border="0" style="border-style: dashed">
		<tr>
		<th align="center" style="color:red" bordercolor="red" >Step#3.2 Choose Ur 2nd Topping </th>
		</tr>
		
		<% for(int j=0;j<toppingList.length;j++)
		{
			if (j==0){
		%>
			<tr bordercolor="red" style="border-style: none" bordercolor="white">
			  <td bordercolor="red" bordercolor="white">
			  <input type="radio" value="nochoice" name="toppingName" CHECKED />
			  <label style="size: 30;">No Choice</label></td>
			</tr>
			  <%}%>
			<tr bordercolor="red" style="border-style: none" bordercolor="white">
		  <td bordercolor="red" bordercolor="white">
			<input type="radio" value='<%=toppingList[j].getToppingName()%>' name="toppingName"  />
			<input type="hidden" value='<%=toppingList[j].getToppingId()%>' name="toppingId"  />
		<label style="size: 30;"><%=toppingList[j].getToppingName()%></label>	
			</td>
			</tr>
		
		<%
			  
			}
		%>
		
	</table><br><br>
	</div>
	<div style="text-align:center;color:red;font-size:2em;font-family: sans serif;">
	<input type="submit" value="Next" align ="middle"/>
	</div>
	
	

</form>
</body>
</html>